import request from '@/utils/request'

export function getRechargeListAPI(params) {
  return request({
    url: '/admin/set/queryrechargesetting',
    method: 'get',
    params
  })
}

//根据id查询充值详情
export function getRechargeDetailAPI(params) {
  return request({
    url: '/admin/set/queryrechargesettingonid',
    method: 'get',
    params
  })
}

// 添加充值选项
export function addRechargeListAPI(params) {
  return request({
    url: '/admin/set/addrechargesetting',
    method: 'post',
    params
  })
}

// 删除充值选项
export function deleteRechargeListAPI(params) {
  return request({
    url: '/admin/set/delrechargesetting',
    method: 'post',
    params
  })
}

// 修改充值选项
export function updateRechargeListAPI(params) {
  return request({
    url: '/admin/set/updaterechargesetting',
    method: 'post',
    params
  })
}

// 货币兑换设置查询
export function getRechargeAPI() {
  return request({
    url: '/admin/set/queryexchangesetting',
    method: 'get'
  })
}
